import request from '@/utils/request'

// 获取员工列表
export const yuangonglist = (params) => {
  return request({
    url: '/sys/user',
    params
  })
}
// 新增员工
export const addxinzen = (data) => {
  return request({
    url: '/sys/user',
    method: 'POST',
    data
  })
}

// 删除员工
export const delshan = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'DELETE'
  })
}
